package com.ktwlsoft.archivemanage.payload.question;

import com.ktwlsoft.archivemanage.domain.dao.entity.QuestionDic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 指南导航修改
 *
 * @author zhuhe on 2019/11/1 9:30
 * @version 1.0
 */
@ApiModel("问题字典修改")
@Getter
@Setter
public class QuestionDicUpdateRequest {

    /**问题字典id**/
    @ApiModelProperty("问题字典id")
    @NotNull(message = "问题字典d不能为空")
    private Long id;

    /**问题字典名称**/
    @ApiModelProperty("问题字典名称")
    @Size(max = 10, message = "问题字典名称超长")
    @NotNull(message = "问题字典名称不能为空")
    private String name;


    /**业务来源**/
    @ApiModelProperty("业务来源(MANAGE(管理端), CUSTOM(用户端)")
    @NotNull(message = "业务来源不能为空")
    private QuestionDic.BusinessFrom businessFrom;
}